package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;

/**
 * <p>
 * 购物车管理
 * </p>
 */
@Data
@TableName("shopping_cart")
@AllArgsConstructor
@NoArgsConstructor
public class ShoppingCart implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "s_id", type = IdType.AUTO)
    @JsonProperty("sId")
    private Integer sId;

    @TableField("s_user_id")
    @JsonProperty("sUserId")
    private Integer sUserId;

    @TableField("s_goods_id")
    @JsonProperty("sGoodsId")
    private Integer sGoodsId;

    @TableField("s_quantity")
    @JsonProperty("sQuantity")
    private Integer sQuantity;

    /**
     * 创建时间
     */
    @JsonProperty("sAddTime")
    @TableField("s_add_time")
    private Date sAddTime;
}
